<script setup>
import {onMounted, ref} from "vue";
const audioUrl = ref("")

const href = window.location.href;
const prefix = "/#/audio?url="
const url = href.substring(href.indexOf(prefix) + prefix.length)

onMounted(()=>{
  audioUrl.value = url;
})
</script>

<template>
  <div style="display: flex; width: 100vw; height: 100vh; justify-content: center; align-items: center;">
    <div>
      <audio controls>
        <source :src="audioUrl">
      </audio>
    </div>
  </div>
</template>

<style scoped lang="scss">

</style>